import { Router } from 'express';
import { 
  mpLoginOrRegister, 
  getPhoneNumber, 
  updateUserInfo,
  refreshToken
} from './mpWeixinLoginController';
// import * as mpWeixinController from './mpWeixinLoginController';

const router = Router();

// 微信小程序登录相关路由
router.post('/login', mpLoginOrRegister);
router.post('/phone', getPhoneNumber);
router.post('/update-info', updateUserInfo);
router.post('/refresh-token', refreshToken);
export default router;